package com.zhx.common.chat.service;

import com.zhx.common.chat.domain.vo.response.ChatRoomResp;
import com.zhx.common.common.domain.vo.req.CursorPageBaseReq;
import com.zhx.common.common.domain.vo.resp.CursorPageBaseResp;

public interface RoomAppService {
    /**
     * 获取会话列表 -- 支持未登录态
     * @param req
     * @param uid
     * @return
     */
    CursorPageBaseResp<ChatRoomResp> getContactPage(CursorPageBaseReq req, Long uid);

    /**
     * 获取会话详情(群聊)
     * @param uid
     * @param roomId
     * @return
     */
    ChatRoomResp getContactDetail(Long uid, long roomId);

    /**
     * 获取会话详情(单聊)
     * @param uid
     * @param friendUid
     * @return
     */
    ChatRoomResp getContactDetailByFriend(Long uid, Long friendUid);
}
